package Hw_01;

public class Faculty extends Employee{
        private String degree;
        private String level;

        public Faculty() {
        }

        public String getDegree() {
            return degree;
        }

        public void setDegree(String degree) {
            this.degree = degree;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public Faculty(String name, String address, String telephone, String email,
                       String office, double wage, String hiredate, String degree, String level) {
            super(name, address, telephone, email, office, wage, hiredate);
            this.degree = degree;
            this.level = level;
        }

        public void say(){
            System.out.println("姓名：" + this.getName() + ",地址：" + this.getAddress() + ",电话：" +
                    this.getTelephone() + ",邮箱：" + this.getEmail() + ",办公室：" + this.getOffice()
                    + ",工资：" + this.getWage() + ",受雇日期：" + this.getHiredate() + ",学位：" + this.getDegree()
                    + ",级别：" + this.getLevel());
        }
    }

